﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GuanYijia.Application.OutPut
{
    /// <summary>
    /// 生产任务显示主表
    /// </summary>
    public class ProductiveTaskHeadInfo
    {
        /// <summary>
        /// 生产任务主键
        /// </summary>
        public int head_id { get; set; }
        /// <summary>
        /// 生产编号
        /// </summary>
        public string head_no { get; set; }
        /// <summary>
        /// 商品编号
        /// </summary>
        public int product_id { get; set; }
        /// <summary>
        /// 商品条码
        /// </summary>
        public string product_code { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string product_name { get; set; }
        /// <summary>
        /// 商品规格
        /// </summary>
        public string product_standard { get; set; }
        /// <summary>
        /// 商品型号
        /// </summary>
        public string product_model { get; set; }
        /// <summary>
        /// 订购数量
        /// </summary>
        [Column(TypeName = "decimal(24,6)")]
        public decimal order_quantity { get; set; }
        /// <summary>
        /// 生产数量
        /// </summary>
        [Column(TypeName = "decimal(24,6)")]
        public decimal production_quantity { get; set; }
        /// <summary>
        /// 总需物料数量
        /// </summary>
        [Column(TypeName = "decimal(24,6)")]
        public decimal bom_quantity { get; set; }
        /// <summary>
        /// 合计成本
        /// </summary>
        [Column(TypeName = "decimal(24,6)")]
        public decimal bom_allPrice { get; set; }
        /// <summary>
        /// 计划完工时间
        /// </summary>
        public DateTime finish_date { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(500)]
        public string? remark { get; set; }
        /// <summary>
        /// 操作员
        /// </summary>
        public int user_id { get; set; }
        /// <summary>
        /// 单据日期
        /// </summary>
        public DateTime create_date { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int statues { get; set; }
        public List<ProductiveTaskItemsInfo> ItemsInfo { get; set; }
    }
}
